<template>
  <div class="home">
    <h3>我是首页</h3>
    <hr />
    <input type="text">
  </div>
</template>

<script>
export default {
    name:'Home',
    // 进入该组件时被调用
    beforeRouteEnter(to, from, next){
      next()
    },
    // 离开该组件时被调用
    beforeRouteLeave(to, from, next){
      next()
    }
}
</script>

<style>

</style>